/*
 *  logic.h
 *  
 *  Created by James Dykstra
 *	Team 5
 *
 *  Copyright 2010 Michigan Technological University. All rights reserved.
 */
 
#ifndef LOGIC_H
#define LOGIC_H
#include "Map.h"

#define UR	0
#define UL	1
#define LL	2
#define LR	3

class Sprite;

class Logic
{
	public:
		Logic(Renderer*, Map*);
		~Logic();
		
		bool 	checkCollide(Sprite *, Sprite *);
		bool		validMove(Sprite *, int, int, float);
	
	private:
	float		minimum(float,float);
	float		maximum(float,float);
	bool			umbrellas(float, float, float[]);
	
	Renderer		*renderer;
	Map			*map;

};

#endif
